package com.mtw.bbs.userAdmin.feign;

import com.mtw.bbs.common.core.vo.Result;
import com.mtw.bbs.userAdmin.pojo.vo.MenuVo;
import com.mtw.bbs.userAdmin.pojo.vo.ResourceVo;
import com.mtw.bbs.userAdmin.pojo.vo.RoleVo;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Feign失败配置
 */
@Component
public class  ResourceClientFallback implements ResourceClient {

    @Override
    public Result<List<MenuVo>> getMenu(String userId) {
        return Result.fail("获取失败");
    }

    @Override
    public Result<List<MenuVo>> getButton(String userId) {
        return Result.fail("获取失败");
    }

    @Override
    public Result<List<ResourceVo>> queryResourceByUser(String userId) {
        return Result.fail("获取失败");
    }

    @Override
    public Result<List<RoleVo>> queryRoleByUser(String userId) {
        return Result.fail("获取失败");
    }
}
